﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracion/AdminAcademia.master"
    AutoEventWireup="true" CodeFile="Cobro.aspx.cs" Inherits="Administracion_Cobro" %>

<%@ OutputCache Location="None" NoStore="true" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div id="sesionInfo" runat="server" visible="true">
                    <h2>Sesión</h2>
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblUsuarioSesion" runat="server" Text="Usuario:"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblUsuarioLogueado" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblRolSesion" runat="server" Text="Rol:"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblRolLogueado" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btnCerrarSesion" runat="server" CssClass="btn" Text="Cerrar Sesión"
                                    Width="127px" onclick="btnCerrarSesion_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
        .style7
        {
            height: 24px;
            text-align: center;
        }
        .style8
        {
            width: 354px;
            height: 24px;
        }
        .style9
        {
            height: 24px;
        }
        .style10
        {
            width: 116px;
        }
        .style11
        {
            text-align: center;
        }
        .style14
        {
            text-align: left;
        }
        .style15
        {
            width: 354px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2>
        Administración de cobros</h2>
    <asp:Panel ID="panelBuscarAlumno" runat="server">
        <br />
        <table class="style1">
            <tr>
                <td class="cabecera style11" colspan="3">
                    Búsqueda de alumno</td>
            </tr>
            <tr>
                <td class="style11">
                    &nbsp;</td>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style14">
                    <asp:Label ID="lblLegajoAlumno" runat="server" Text="Legajo alumno:"></asp:Label>
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtLegajoBuscar" runat="server" CssClass="txt" Width="169px"></asp:TextBox>
                    &nbsp;<asp:Button ID="btnBuscarAlumnoPorLegajo" runat="server" CssClass="btn" 
                        OnClick="btnBuscarAlumnoPorLegajo_Click" Text="Buscar" 
                        ValidationGroup="valBuscar" />
                </td>
                <td>
                    <asp:CompareValidator ID="cvLegajo" runat="server" 
                        ControlToValidate="txtLegajoBuscar" ErrorMessage="Debe ingresar un número" 
                        Font-Size="Smaller" ForeColor="Red" Operator="DataTypeCheck" Type="Integer" 
                        ValidationGroup="valBuscar">* Debe ingresar un número</asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style14">
                    <asp:Label ID="lblNombreAlumno" runat="server" Text="Alumno:"></asp:Label>
                </td>
                <td class="style2" colspan="2">
                    <asp:Label ID="lblResBuscar" runat="server"></asp:Label>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style11">
                    &nbsp;</td>
                <td class="style2" colspan="2">
                    <asp:Label ID="lblResRegistro" runat="server" style="text-align: left"></asp:Label>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="panelRegistrarCobro" runat="server">
        <table class="style1">
            <tr>
                <td class="style7">
                    &nbsp;</td>
                <td class="style8">
                    &nbsp;</td>
                <td class="style9">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="cabecera style7" colspan="3">
                    Cuotas a pagar</td>
            </tr>
            <tr>
                <td class="style7">
                    &nbsp;</td>
                <td class="style8">
                </td>
                <td class="style9">
                </td>
            </tr>
            <tr>
                <td class="style10" colspan="3" align="center">
                    <asp:GridView ID="gvMatriculas" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="IdCuotaMatricula" 
                        EmptyDataText="No hay cuotas deudoras" ForeColor="#333333" GridLines="None" Width="520px">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="chkSelec" runat="server" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSelec" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Nombre" HeaderText="Curso" />
                            <asp:BoundField DataField="NumeroCuota" HeaderText="Nº Cuota">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Monto" DataFormatString="{0:c}" HeaderText="Monto" />
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style10" colspan="3" align="center">
                    <asp:Button ID="btnConfirmarCobro" runat="server" CssClass="btn" 
                        onclick="btnConfirmarCobro_Click" Text="Confirmar Cobro" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
